package com.wo.cloud.log.feign;

import com.wo.cloud.core.entity.Response;
import com.wo.cloud.core.entity.CommonLog;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author liry
 * @version 1.0
 * @date Created on 2021/4/30 9:56
 * Description: feign调用存储日志
 */
@FeignClient(value = "wocloud-admin")
public interface ISysLogFeign {
    /**
     * 日志设置
     *
     * @param commonLog 　CommonLog对象
     * @return Response
     */
    @PostMapping("/sys/log/set")
    Response<Boolean> set(@RequestBody CommonLog commonLog);
}
